package com.example.koma.myedittext;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        final MyEditText myEditText = (MyEditText) findViewById(R.id.myets);
        EditText et = (EditText)findViewById(R.id.et);
//        myEditText.setInputType(1);

        findViewById(R.id.tv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(MainActivity.this, myEditText.getText().toString(), Toast.LENGTH_LONG).show();
            }
        });

    }
}
